﻿#{extends 'main.html' /}
#{set title:'Cadastar Usuário' /}

<form name="formCadastrarUsuario" method="post" action="@{CUsuario.cadastrarUsuario()}"> 

#{if flash.error}
	<div 	class = "msgInfo">
		<p>
			${flash.error}
		</p>
	</div>
#{/if}

<table>
    <tr>
      <td> <label>Usuário:</label> </td>
      <td> <input name="usuario" id="usuario" type="text" tabindex="1" size="15" value = "${params.usuario}"></td>
    </tr>
    <tr>
      <td> <label> Email: </label> </td>
      <td> <input name="email" id="email" type="text" tabindex="2" size="15" value = "${params.email}"/> </td>
    </tr>
    <tr>
      <td> <label>Login: </label>
      <td> <input name="login" id="login" type="text" tabindex="3" size="15" value = "${params.login}"> </td>
    </tr>
    <tr>
      <td> <label>Senha: </label> </td>
      <td> <input name="senha" id="senha" type="password" tabindex="4" size="15" value = ""> </td>
    </tr>
	<tr>
      <td> <label>Confirmar Senha: </label> </td>
      <td> <input name="confirmasenha" id="confirmasenha" type="password" tabindex="4" size="15" value = ""> </td>
    </tr>
    <tr>
      <td></td>
      <td> <input type="submit" name="sbCadastrar" id="sbCadastrar" value="Cadastrar" tabindex="5">
       <input type="button" name="btCancelar" id="btCancelar" value="Cancelar" tabindex="6" onclick = "javascript:window.location = '@{Application.login()}'"> </td>
    </tr>
</table>
</form>